
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-Net"></use>
                    </svg>
                    <div class="name">网络信号</div>
                    <div class="fontclass">#el-icon-erp-Net</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-dialersip"></use>
                    </svg>
                    <div class="name">dialer_sip</div>
                    <div class="fontclass">#el-icon-erp-dialersip</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-meiti"></use>
                    </svg>
                    <div class="name">媒体</div>
                    <div class="fontclass">#el-icon-erp-meiti</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-xitongweihu"></use>
                    </svg>
                    <div class="name">系统维护</div>
                    <div class="fontclass">#el-icon-erp-xitongweihu</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-folder"></use>
                    </svg>
                    <div class="name">文件夹</div>
                    <div class="fontclass">#el-icon-erp-folder</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-AudioBoard"></use>
                    </svg>
                    <div class="name">音频_audio48</div>
                    <div class="fontclass">#el-icon-erp-AudioBoard</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-sipReg"></use>
                    </svg>
                    <div class="name">注册登录-用户名</div>
                    <div class="fontclass">#el-icon-erp-sipReg</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-ai-video"></use>
                    </svg>
                    <div class="name">视频</div>
                    <div class="fontclass">#el-icon-erp-ai-video</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-jingyin"></use>
                    </svg>
                    <div class="name">静音</div>
                    <div class="fontclass">#el-icon-erp-jingyin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-lanmupeizhi"></use>
                    </svg>
                    <div class="name">栏目配置</div>
                    <div class="fontclass">#el-icon-erp-lanmupeizhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-kongzhizhongxin"></use>
                    </svg>
                    <div class="name">控制中心</div>
                    <div class="fontclass">#el-icon-erp-kongzhizhongxin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-closed"></use>
                    </svg>
                    <div class="name">接收</div>
                    <div class="fontclass">#el-icon-erp-closed</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-hujiaozhuangtai"></use>
                    </svg>
                    <div class="name">3.0-呼叫客服</div>
                    <div class="fontclass">#el-icon-erp-hujiaozhuangtai</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-weizhuce"></use>
                    </svg>
                    <div class="name">注册</div>
                    <div class="fontclass">#el-icon-erp-weizhuce</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-huiyi"></use>
                    </svg>
                    <div class="name">会议</div>
                    <div class="fontclass">#el-icon-erp-huiyi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-sendSec"></use>
                    </svg>
                    <div class="name">线描－发送</div>
                    <div class="fontclass">#el-icon-erp-sendSec</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-huiyi1"></use>
                    </svg>
                    <div class="name">会议</div>
                    <div class="fontclass">#el-icon-erp-huiyi1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-sanjiaoxings"></use>
                    </svg>
                    <div class="name">三角形</div>
                    <div class="fontclass">#el-icon-erp-sanjiaoxings</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-VidioBoard"></use>
                    </svg>
                    <div class="name">视频</div>
                    <div class="fontclass">#el-icon-erp-VidioBoard</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-xitongshezhi"></use>
                    </svg>
                    <div class="name">系统设置</div>
                    <div class="fontclass">#el-icon-erp-xitongshezhi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-lossRatio"></use>
                    </svg>
                    <div class="name">警告</div>
                    <div class="fontclass">#el-icon-erp-lossRatio</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-yinpin"></use>
                    </svg>
                    <div class="name">音频</div>
                    <div class="fontclass">#el-icon-erp-yinpin</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-txt"></use>
                    </svg>
                    <div class="name">txt</div>
                    <div class="fontclass">#el-icon-erp-txt</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-ceshi"></use>
                    </svg>
                    <div class="name">测试</div>
                    <div class="fontclass">#el-icon-erp-ceshi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-set"></use>
                    </svg>
                    <div class="name">系统设置</div>
                    <div class="fontclass">#el-icon-erp-set</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-yinpin3"></use>
                    </svg>
                    <div class="name">音频</div>
                    <div class="fontclass">#el-icon-erp-yinpin3</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-word"></use>
                    </svg>
                    <div class="name">word</div>
                    <div class="fontclass">#el-icon-erp-word</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-zhongkongtai1"></use>
                    </svg>
                    <div class="name">中控台</div>
                    <div class="fontclass">#el-icon-erp-zhongkongtai1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-dianhuaweijie"></use>
                    </svg>
                    <div class="name">电话 未接</div>
                    <div class="fontclass">#el-icon-erp-dianhuaweijie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-xitongweihu1"></use>
                    </svg>
                    <div class="name">系统维护</div>
                    <div class="fontclass">#el-icon-erp-xitongweihu1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-MIDIS"></use>
                    </svg>
                    <div class="name">mdm_连接状态1</div>
                    <div class="fontclass">#el-icon-erp-MIDIS</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-weilianjie"></use>
                    </svg>
                    <div class="name">mdm_连接状态2</div>
                    <div class="fontclass">#el-icon-erp-weilianjie</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-up"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#el-icon-erp-up</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-upRight"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#el-icon-erp-upRight</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-downRight"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#el-icon-erp-downRight</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-down"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#el-icon-erp-down</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-downLeft"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#el-icon-erp-downLeft</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-left"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#el-icon-erp-left</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-upLeft"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#el-icon-erp-upLeft</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-right"></use>
                    </svg>
                    <div class="name">箭头</div>
                    <div class="fontclass">#el-icon-erp-right</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-Panel"></use>
                    </svg>
                    <div class="name">红外遥控器</div>
                    <div class="fontclass">#el-icon-erp-Panel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-EXE"></use>
                    </svg>
                    <div class="name">EXE</div>
                    <div class="fontclass">#el-icon-erp-EXE</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-back"></use>
                    </svg>
                    <div class="name">back</div>
                    <div class="fontclass">#el-icon-erp-back</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-excel"></use>
                    </svg>
                    <div class="name">excel</div>
                    <div class="fontclass">#el-icon-erp-excel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-picture"></use>
                    </svg>
                    <div class="name">图片</div>
                    <div class="fontclass">#el-icon-erp-picture</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-erp-zip"></use>
                    </svg>
                    <div class="name">zip</div>
                    <div class="fontclass">#el-icon-erp-zip</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#el-icon-erp-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
